﻿using Domain.Entities;
using Domain.Entities.MentalHealth;
using Domain.Entities.SlimmingAssistants;
using FluentMigrator;
using FrameworkCore.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AiBLSmartEdu.Module.AISlimmingAssistant.API.Migrations;

[Migration(202507031437)]
public class SlimmingAssistantAddReferralsColumn : ForwardOnlyMigration
{
    public override void Up()
    {
        Alter.Table(MigrationExpressions.GetTableName(typeof(SlimmingAssistant)))
          .AddColumn(MigrationExpressions.ColumnNameFor<SlimmingAssistant>(nameof(SlimmingAssistant.Referrals))).AsString(int.MaxValue).Nullable().WithColumnDescription("推荐/建议");
    }
}